package com.cckj.common.sms;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * 短信配置类
 *
 * @author chengni
 * @date 2021/8/20 上午10:14
 */
@Data
@Component
@ConfigurationProperties(prefix = "sms")
public class SmsConfig {

    /**
     * 过期时间
     */
    private Integer expirationMinutes;

    /**
     * 过期时间单位
     */
    private TimeUnit expirationTimeUnit = TimeUnit.MINUTES;

    /**
     * redisKey
     */
    private String redisKsy;


}
